package analiseSemantica;

    public class VarDeclList {
        VarDecl varDeclRef;
        VarDeclList varDeclListRef;
        int cat;
        int type;
        String id;
        public int line;

        public VarDeclList(int cat) {
            this.cat = cat;
            this.varDeclListRef = null;
            this.varDeclRef = null;
        }

         public VarDeclList(int type , String id, int cat , Object ob , Object ob2) {
            this.type = type;
            this.id = id;
            this.cat = cat;
            
            if ( ob instanceof VarDecl)
             this.varDeclRef = (VarDecl) ob;

            if ( ob2 instanceof VarDeclList)
                  this.varDeclListRef = (VarDeclList) ob2;

         }

        public VarDeclList getVarDeclListRef() {
            return varDeclListRef;
        }

        public void setVarDeclListRef(VarDeclList varDeclListRef) {
            this.varDeclListRef = varDeclListRef;
        }

        public VarDecl getVarDeclRef() {
            return varDeclRef;
        }

        public void setVarDeclRef(VarDecl varDeclRef) {
            this.varDeclRef = varDeclRef;
        }



        public int getCat() {
            return cat;
        }

        public void setCat(int cat) {
            this.cat = cat;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }
        






    }

